<!DOCTYPE html>
<html>
<head>
  <title>RFID - FACCAT</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
  
  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
	<section id="container" >
		<!--header start-->
	    <header class="header black-bg">
	    	<div class="sidebar-toggle-box">
	        	<div class="fa fa-bars tooltips fa-sidebar-icon" data-placement="right" data-original-title="Menu"></div>
	        </div>
	        <!--logo start-->
	        <a href="index.html" class="logo"><b>RFID - FACCAT</b></a>
	        <!--logo end-->
	        <div class="top-menu">
	        	<br />
	        	<ul class="nav pull-right">
	            	<li><%= image_tag("logo_barra.png") %></li>
	          	</ul>
	        </div>
	    </header>
	    <!--header end-->
	    
	    <!--sidebar begin-->
	    <aside> <%= render file: 'layouts/_nav_bar' %> </aside>
	    <!--sidebar end-->
	    
	    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
	    <!--main content start-->
	    <section id="main-content">
	    	<section class="wrapper">
	        	<div class="row">
	            	<div class="col-lg-12">
	            	  <% if flash[:notice] %>
	            	    <br />
	            	    <div class="alert alert-success" role="alert">
	            	    	<button type="button" class="close" data-dismiss="alert" aria-label="Close">
						      <span aria-hidden="true">&times;</span>
						    </button>
						    <div class="notice"><%= flash[:notice] %></div>
	            	    </div>
				      <% end %>
	                  <%= yield %>
	                </div>
			  	</div>
	      	</section>
	  	</section>
		<!--main content end-->
  	</section>
	<script type="application/javascript">
        $(document).ready(function () {
            $("#date-popover").popover({html: true, trigger: "manual"});
            $("#date-popover").hide();
            $("#date-popover").click(function (e) {
                $(this).hide();
            });
        });
        
        
        function myNavFunction(id) {
            $("#date-popover").hide();
            var nav = $("#" + id).data("navigation");
            var to = $("#" + id).data("to");
            console.log('nav ' + nav + ' to: ' + to.month + '/' + to.year);
        }
    </script>

</body>
</html>
